package com.jml.hystrix.令牌桶算法.AOP;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

//服务限流注解RateLimiter
@Target(value = ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ExtRateLimiter {
	double value(); //令牌桶加入token的速率
	long timeOut();	//如果还没拿到token就超时
}
